package com.eightworld3.supermarket.service.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Date;

/**
 * @author EightWorld3
 */
@Schema(description = "用户账单Dto")
public class CustomerTabDTO {
    /**
     * primary key
     */
    private Integer tabId;

    @Schema(name = "wareNum",example = "1",requiredMode = Schema.RequiredMode.REQUIRED,description = "数量")
    private Integer wareNum;

    @Schema(name = "totalPrice",example = "1",requiredMode = Schema.RequiredMode.REQUIRED,description = "总价")
    private Float totalPrice;

    @Schema(name = "tabDate",example = "2024-2-15,17:29",description = "登记日期")
    private Date tabDate;

    @Schema(name = "remark",example = "备注",description = "商品备注")
    private String remark;

    public int getTabId() {
        return tabId;
    }

    public void setTabId(int tabId) {
        this.tabId = tabId;
    }

    public int getWareNum() {
        return wareNum;
    }

    public void setWareNum(int wareNum) {
        this.wareNum = wareNum;
    }

    public float getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(float totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Date getTabDate() {
        return tabDate;
    }

    public void setTabDate(Date tabDate) {
        this.tabDate = tabDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "CustomerTabDTO{" +
                "tabId=" + tabId +
                ", wareNum=" + wareNum +
                ", totalPrice=" + totalPrice +
                ", tabDate=" + tabDate +
                ", remark='" + remark + '\'' +
                '}';
    }
}
